package org.gulugulubiao.service.Impl;

import lombok.extern.slf4j.Slf4j;
import org.gulugulubiao.entity.Tag;
import org.gulugulubiao.mapper.TagMapper;
import org.gulugulubiao.result.Result;
import org.gulugulubiao.service.TagService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
@Slf4j
public class TagServicelmpl implements TagService {
    @Autowired
    private TagMapper tagMapper;

    @Override
    public Result getAllTags() {
        List<Tag> tags = tagMapper.findAll();
        return Result.success(tags);
    }
}
